/**
 * @author Kristian Mandrup
 * @date May 25, 2009
 * @version 0.1
 * 
 * m3gen :: TEST NodeObjBuilder
 * 
 */

var testNodeObjBuilder = {
	
	setup: function() {
		var NodeObjBuilder = new m3gen.NodeObjBuilder();		
	},
	
	testExecute_empty: function() {
		var resolvedContent = null;
		var nodeObj = NodeObjBuilder.execute(resolvedContent);				
	},	

	testExecute_simple: function() {
		var id = 'person_Jack';
		var attributes = {};
		var state = 'closed';
		var languageData = {
			title: 'Jack Smith',
			icon: 'person.png'
		}
		
		var resolvedContent = {
			id: id, 
			attributes: attributes, 
			state: state, 
			languageData: languageData
		};
		
		var nodeObj = NodeObjBuilder.execute(resolvedContent);				
	},	

	testExecute_langs: function() {
		var id = 'person_Jack';
		var attributes = {};
		var state = 'closed';
		var languageData = {
			dk: {
				title: 'Jack Smith',
				icon: 'dk_person.png'				
			},
			en: {
				title: 'Jack Smith',
				icon: 'en_person.png'				
			}
		}
		
		var resolvedContent = {
			id: id, 
			attributes: attributes, 
			state: state, 
			languageData: languageData
		};
		
		var nodeObj = NodeObjBuilder.execute(resolvedContent);				
	}	
	
} 
